<?php

class City extends MX_Controller
{
    function __construct()
    {
        parent::__construct();
        $this->lang->load('error', $this->public_model->getLanguage());
        $this->load->helper('url');
    }
  
    function choose_city()
    {
        $action = $this->input->post('action');
        if ($action != null && $action == 'frontback')
        {
            $city = $this->input->post('City');
            $this->session->set_userdata('city_session', $city ); 
            redirect(base_url());
        }
    }
  
}
